﻿@model IEnumerable<VehicleManagement.Models.CarInfo>

@{
    ViewBag.Title = "SelectCarByAvailable";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*<h2>目前可用的车辆</h2>*@

<div class="mas">
<div class="toptitle">
   司机负责人管理平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewDriverManager")
<div class="rightshow">

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            CarNumber
        </th>
        <th>
            CarType
        </th>
        <th>
            Picture
        </th>
        <th>
            CarAvailable
        </th>
        <th>
            CarState
        </th>
        <th>
            Remark
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CarNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CarType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Picture)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CarAvailable)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CarState)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Remark)
        </td>
        <td>
            @Html.ActionLink("Details", "Details", new { id = item.CarID })
        </td>
    </tr>
}

</table>


</div>

<div class="clear"></div>
	
</div>
